I built an Layout DXL that recursively returns Attributes from in-linked Objects, based on the name of the Column the code appears in (plus a suffix phrase, " Rollup"). So, if you want to see the values for Attribute "Object Text" from all in-linked modules, you would name the Column "Object Text Rollup", and put the DXL code in. If Module B Object 2 and Module C Object 3 linked to this Object, the cell in Column "Object Text Rollup" might read: [<-B2] Blah blah blah. [<-C3] This is text in Module C. If the user misnames the Column ("Dumb Name That Doesn't End In Rollup Unfortunately"), a default Attribute is returned. I have two problems:
strColumnName = title(currentColumn()) I check to see if length(strColumnName) > 0, and I even tried protecting the assignment with
if (!null title(currentColumn()))
{
strColumnName = title(currentColumn())
}
I still get the error. :(
2. I would like to implement this as Attribute DXL, but it just errors out when I converted it using the usual Tools > Support Tools > Convert Layout DXL to Attribute DXL.
The full code is attached. Any ideas? JoeMarfice - Tue Jan 22 23:18:24 EST 2019 |
Re: Getting Column Name when blank, and from ADXL
the "currentColulmn()" command only works in layouts. If you Column c for c in mod do { if (attribute(c)) == "whatever I called it.dxl") Title = Title(c) break
}
else AttrDXL: get title from currrentColuimn then Layout. DisplayRich(results)
else AttrDXL: obj.attrDXLName = richText(results) |